package fr.afcepf.ticketing.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name="ADDRESSES")
public class Address {

	@Id
	@Column(name = "ADDRESS_ID")
	private int id;
	@Column(name = "ADDRESS_STREET")
	private String street;
	@Column(name = "ADDRESS_ZIPCODE")
	private int zipCode;
	@Column(name = "ADDRESS_CITY")
	private String city;
	@Column(name = "ADDRESS_COUNTRY")	
	private String country;

	public Address() {
		super();
	}

	public Address(int id, String street, int zipCode, String city,
			String country) {
		super();
		this.id = id;
		this.street = street;
		this.zipCode = zipCode;
		this.city = city;
		this.country = country;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getStreet() {
		return street;
	}

	public void setStreet(String street) {
		this.street = street;
	}

	public int getZipCode() {
		return zipCode;
	}

	public void setZipCode(int zipCode) {
		this.zipCode = zipCode;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getCountry() {
		return country;
	}

	public void setCountry(String country) {
		this.country = country;
	}

	@Override
	public String toString() {
		return "Address [id=" + id + ", street=" + street + ", zipCode="
				+ zipCode + ", city=" + city + ", country=" + country + "]";
	}

}
